#include <iostream>
#include <ctime>
using namespace std;

int MA()
{
    srand(static_cast<unsigned>(time(nullptr)));

    int const random_number = rand() % 100 + 1;
    int number;
    cout<<"请输入数字，正确答案是0-100之间的整数:\n";
    do
    {
        cin>>number;
        if (number !=random_number)
        {
            number>random_number ? cout<<"大了\t"<<endl : cout<<"小了\t"<<endl;
        }else
        {
            break;
        }
    }while (true);
    cout<<"对了"<<endl;

    return 0;
}
